I am trying to figure out how a built in GUI for DOORS works. The GUI is the internal history viewer for a given module. |
Re: Dynamic DBE placement (GUIs)
Hi Patrick,
#include <../lib/std/TabControl.inc>
// Make the dialog, decide on the tabs that you will implement:
DB diag = centered "Tab Test"
string arTabs[] = {"About", "Log" }
TabControl tb = createTabControl (diag, arTabs)
tb -> "top" -> "form"
// Build About Page, tell the tabcontrol about it!
setCurrentPage (tb, "About")
// do NOT place this item under tab control
DBE x = label (diag, "This label will stay on About and Log") // => tb
x -> "top" -> "inside" -> tb; x -> "left" -> "form"
// place this item under tab control in 'About' tab
DBE y = label (diag, "This label will only be on tab 'about'!") => tb
y -> "top" -> "spaced" -> x; y -> "left" -> "form"
// place this item under tab control in 'About' tab
DBE z = label (diag, "This library is nice!")=> tb
z -> "top" -> "spaced" -> y; z -> "left" -> "form"; z-> "bottom" -> "form"
// Build Log tab
setCurrentPage (tb, "Log")
// place this item under tab control in 'Log' tab
DBE fld = text(diag, "", "", 200, 80, true) => tb
fld -> "top" -> "spaced" -> x; fld -> "left" -> "form"
// do this once before starting the GUI, so all will be shown correctly
switchPage tb
show diag
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
Attachments attachment_14791836_TabControl.zip |
Re: Dynamic DBE placement (GUIs) |